#ifndef TRIANGLEMF_H
#define TRIANGLEMF_H

#include "graphicalmf.h"

class TriangleMF : public GraphicalMF
{
public:
    TriangleMF();
    TriangleMF(double newPoints[]);

    ~TriangleMF();

    void paint(QPainter* painter,
               const double &xShift,
               const double &xScale,
               const double &yShift,
               const double &yScale) const;

    /** Calculation functions */
	void calculateCentroid();
    void calculateProbability (const double& crispInput);
};

#endif // TRIANGLEMF_H
